﻿using System;
using System.IO;
using System.Management.Automation.Runspaces;
using System.Windows;

namespace SpriteSheetsFabric.Wpf
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            this.InitializeComponent();

            this.Loaded += (sender, e) => Baker
                .CreateOnElementForStoryboard(this.portfolio_deco, "portfolio_in", TimeSpan.FromSeconds(1.8d))
                    .And("portfolio_out", TimeSpan.FromSeconds(1.3d))
                    .AndForAnotherElement(this.experiments_deco, "experiments_in", TimeSpan.FromSeconds(2.3d))
                    .Bake()
                    .AndThen(this.Close);
        }
    }
}
